package com.bzxgc.sgwer.entity.menu;

import com.bzxgc.sgwer.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import lombok.Data;

import java.util.List;

@Data
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE, isGetterVisibility = JsonAutoDetect.Visibility.NONE)
public class Menu extends BaseEntity {
    /**
     * 名称
     */
    private String name;
    /**
     * true展开 false折叠
     */
    private String open;
    /**
     * 父节点id
     */
    private Long pId;
    /**
     * 图标
     */
    private String ico;
    /**
     * URI
     */
    private String uri;

    /**
     * 扩展属性：子节点
     */
    private List<Menu> children;

}
